<?php

class database{
	
	// Database vars
	private $dbhost;
	
	private $database;
	
	private $dbuser;
	
	private $dbpass;
	
	private $conect;
	
	function __construct(){
		/*$this->dbhost = 'localhost';
		$this->dbuser = 'crepashok_gt';
		$this->dbpass = 'nZmkH$9`fxW+';
		$this->database = 'crepashok_gt';*/
		
		$this->dbhost = 'localhost';
		$this->dbuser = 'root';
		$this->dbpass = 'root';
		$this->database = 'goldentime';
	/*}
	
	public function connectDB(){*/
		$this->conect = mysql_connect($this->dbhost, $this->dbuser, $this->dbpass) or die(mysql_error());
		mysql_select_db($this->database, $this->conect) or die(mysql_error());
	}
	
}

$database_obj = new database();
/*$database_obj->connectDB();*/


